package com.example.orderserver.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderDao {
    @Insert("insert into `order` (id, user_id, status, total_price) values (#{id}, #{userId}, #{status}, #{totalPrice})")
    void insertOrder(@Param("id") Long id, @Param("userId") Integer userId, @Param("status") Integer status, @Param("totalPrice") Integer totalPrice);
}
